import classNames from 'classnames'
import { UploadFile } from '../../Upload'

export const DISPLAY_NAME_UPLOAD_LIST = 'UploadList'

export interface UploadListProps {
  fileList: UploadFile[]
  onRemove: (file: UploadFile) => void
}

// 获取组件配置的class
export const getUploadListClassNames = (
  props: UploadListProps,
  extendClass?: () => Object
) => {
  return classNames('upload-list', extendClass && extendClass())
}
